<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="paw.eltabique.web.resources.ApplicationResources" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/design1.css" title="style1" rel="stylesheet" media="screen" type="text/css" />
        <title>¡El Tabique! Login</title>
    </head>
    <body>
      <div class="login">
        <%
            String error =(String) request.getAttribute(ApplicationResources.LOGIN_ERROR);
            if(error != null){
                %>
                <p class="error">
                Error: <%= error %>
                </p>
                <%
            }
        %>

        <form action="?accion=login"  method="post" >
        <label>Nombre de usuario: </label><input type="text" name="<%=ApplicationResources.USER_NAME_KEY%>" value=""/><br/>
        <label>Invitado: </label><input type="radio" name="<%=ApplicationResources.USER_ROLE_KEY%>" value="<%=ApplicationResources.ROLE_GUEST%>"/>
        <label>Usuario: </label><input type="radio" name="<%=ApplicationResources.USER_ROLE_KEY%>" value="<%=ApplicationResources.ROLE_USER%>"/>
        <label>Administrador: </label><input type="radio" name="<%=ApplicationResources.USER_ROLE_KEY%>" value="<%=ApplicationResources.ROLE_ADMIN%>"/><br/>
        <input type="submit" value="login"/>

    </form>
      </div>
    </body>
</html>